.NET Framework Class Library |
TaskFactory<(Of <(TResult>)>)..::.CancellationToken Property |
TaskFactory<(Of <(TResult>)>) Class See Also Send Feedback |
Gets the default CancellationToken of this
TaskFactory.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property CancellationToken As CancellationToken |
C# |
---|
public CancellationToken CancellationToken { get; } |
Remarks
This property returns the default CancellationToken that will be assigned to all
tasks created by this factory unless another CancellationToken value is explicitly specified
during the call to the factory methods.